package com.frame;

import com.frame.service.UserService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: shiyj
 * @Date: Created in 10:25 2023/10/10
 * @Description:
 * @Modified By:
 */
@Configuration
@ComponentScan("com.frame.service")
public class TestSpring {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(TestSpring.class);
		UserService bean = ac.getBean(UserService.class);
		bean.sayHi();
	}

}
